Laravel Setup Local
Project Extraction
- 
First you have to extract the
nlytical.zipthen you will get three zip files.- Nlytical-laravel.zip
 - Nlytical-admin.zip
 
- Nlytical-web.zip (if you have website version)
 - Nlytical-app.zip (if you have application version)
 
 - 
extract the
Nlytical-laravel.zipatnlytical_laravelfolder inside xampp htdocs folder 
Configurations
- After the extraction you will see the Project files
 
Configure Environment Variables
- 
Edit the
.envfile in the root directory of your project. This step is mandatory to ensure the application can connect to your database. - 
Update the following lines in the
.envfile with your actual server and database credentials:APP_URL=http://localhost
DB_DATABASE={your_database_name}
DB_USERNAME={your_database_username}
DB_PASSWORD={your_database_password} 
Clear Configuration Caches
- 
Before running migrations, clear all cached configurations using the following Artisan commands:
php artisan config:clear
php artisan cache:clear
php artisan route:clear
php artisan view:clear
php artisan optimize 
Database Migration
- Below command used to manage your database schema using migration files.:
 
php artisan migrate

- During the installation process, you may be prompted with configuration options. Answer "yes" to all questions.
 - Once installed all tabales in database then you can run below command to serve installation process.
 
Install JWT Auth
- JWT Auth is required for API authentication. Install it by running:
 
composer require php-open-source-saver/jwt-auth
- 
Notes: The error you're facing is due to the missing ext-sodium PHP extension after run above command, which is required by lcobucci/jwt (used by kreait/firebase-php for JWT handling). Here's how to fix it:

Edit php.ini
- open C:\xampp\php\php.ini in a text editor
 
 - 
Search for the following line:
;extension=sodium- Uncomment it by removing the semicolon:
 
extension=sodium- Restart Apache using the XAMPP Control Panel (Stop → Start).
 
 
Generate JWT Secret Key
To generate a unique JWT secret key and automatically add it to your .env file, run the following command in your project root:
php artisan jwt:secret
Start Development Server
- To start the development server, run the following command:
 
php artisan serve
Varification
Open below url in the web browser.
http://127.0.0.1:8000/
- 
If everything was installed correctly then you will see page like below.

 - 
Requirements PHP Extensions.

 - 
In here you have to enter envato
Usernameandpurchase code.Purchase codeYou can only use this purchase code one time.
 - 
Third steps is for database configuration.

- 
Provide a Database name which you want to use for this nlytical (That Database must not be exist before creation. That will be automatically created at runtime)
 - 
Provide Database Username (User which will have acces of this Database. For Security purpose Provide a totally new username for this )
 - 
Provide Database User's Password. This password will be used to access that database. Although Root user will have access of all the Databse which exist in It's MySQL
 - 
After all the installation prccess completed you will see this page.
noteAfter successfully completing the manual deployment, please run
php artisan optimizein your project. This step is mandatory. Additionally, if you make any changes to the .env file, always remember to runphp artisan optimizeafterward. - 
If you want to setup it in your server then you have to first deactivate your project through admin panel

 
 -